
public class CodeBlock extends AbstractLeaf
{
	private String language = null ;
	public CodeBlock(String value)
	{
		super(value);
	}

	@Override
	public String toDokuWiki() 
	{
		StringBuilder stringBuilder = new StringBuilder() ;
		stringBuilder.append("<code") ;
		if(language != null)
		{
			stringBuilder.append(' ') ;
			stringBuilder.append(language) ;
		}
		stringBuilder.append('>') ;
		stringBuilder.append(value) ;
		stringBuilder.append("</code>") ;
		return stringBuilder.toString() ;
	}

	@Override
	public String toMediaWiki() {
		// TODO Auto-generated method stub
		return null;
	}
	
	public void setLanguage(String language)
	{
		this.language = language ; 
	}

	@Override
	public String toText2tags() {
		// TODO Auto-generated method stub
		return null;
	}
}
